package org.example.redisson;

import java.util.concurrent.TimeUnit;

/**
 * @Classname RedisLock
 * @Description TODO
 * @Date 2021/3/24 4:07 下午
 * @Created by xiangjd
 */

public interface RedisLock {

    boolean tryLock(String key, long timeout, TimeUnit unit);

    void releaseLock(String key);
}
